package com.admin.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.admin.bean.AdminIvrStatFeeBean;
import com.admin.dao.AdminIvrStatFeeDao;

@Service("adminIvrStatFeeService")
public class AdminIvrStatFeeService {

	@Autowired AdminIvrStatFeeDao adminIvrStatFeeDao;
	
	public List<AdminIvrStatFeeBean> findStatByCondition(String condition) {
		try {
			return adminIvrStatFeeDao.findStatByCondition(condition);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
			return new ArrayList<AdminIvrStatFeeBean>();
		} finally {

		}
	}
	
	public List<AdminIvrStatFeeBean> findHourStatByCondition(String condition) {
		try {
			return adminIvrStatFeeDao.findHourStatByCondition(condition);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
			return new ArrayList<AdminIvrStatFeeBean>();
		} finally {

		}
	}
}
